<?php defined('InShopNC') or exit('Access Invalid!');?>
<script src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js" type="text/javascript"></script>
<div class="quick-login">
  <form id="login_form_<?php echo $loginId=isset($_GET['rand'])?(string)$_GET['rand']:mt_rand(10000,99999);?>" action="<?php echo SHOP_SITE_URL;?>/index.php?act=login" method="post" onsubmit="ajaxpost('login_form_<?php echo $loginId;?>', '<?php echo SHOP_SITE_URL;?>/index.php?act=login', '', 'onerror');return false;"  class="bg" >
    <?php Security::getToken();?>
    <input type="hidden" name="form_submit" value="ok" />
    <input name="nchash" type="hidden" value="<?php echo getNchash();?>" />
    <dl>
      <dt>用户名：</dt>
      <dd>
        <input type="text" class="text" autocomplete="off"  name="user_name" id="user_name">
      </dd>
    </dl>
    <dl>
      <dt>密&nbsp;&nbsp;&nbsp;码：</dt>
      <dd>
        <input type="password" class="text" name="password" autocomplete="off"  id="password">
      </dd>
    </dl>
    <?php if(C('captcha_status_login') == '1') { ?>
    <dl>
      <dt>验证码：</dt>
      <dd>
        <input type="text" name="captcha" class="text fl w60" id="captcha" maxlength="4" size="10" />
        <img class="fl ml10" src="<?php echo SHOP_SITE_URL?>/index.php?act=seccode&op=makecode&nchash=<?php echo getNchash();?>" title="<?php echo $lang['login_index_change_checkcode'];?>" name="codeimage" border="0" id="codeimage" onclick="this.src='<?php echo SHOP_SITE_URL?>/index.php?act=seccode&op=makecode&nchash=<?php echo getNchash();?>&t=' + Math.random()"><span></span></dd>
    </dl>
    <?php } ?>
    <ul>
      <li><input type="submit" class="submit" value="&nbsp;" name="Submit"></li>
      <li>如果您没有登录帐号，请先<a href="<?php echo SHOP_SITE_URL?>/index.php?act=login&op=register" class="register">注册会员</a>然后登录</li>
      <li>如果您<a href="<?php echo SHOP_SITE_URL?>/index.php?act=login&op=forget_password" class="forget">忘记密码</a>？，申请找回密码</li>
    </ul>
    <div class="enter">
        <?php if ($GLOBALS['setting_config']['qq_isuse'] == 1 || $GLOBALS['setting_config']['sina_isuse'] == 1){?>
          <dl>
            <dd class="nc-login-other" style="width: 100%;text-align: center;padding: 0;border: none">
              <p><?php echo $lang['nc_otherlogintip'];?></p>
              <?php
              $oauth_login=c('oauth_login');
              foreach($oauth_login as $open_name=>$open_item){?>
                <?php if ($open_item['use'] == 1){?>
                  <a href="<?php if($open_name=='weixin'){?>javascript:weixin_login();<?php }else{?><?php echo SHOP_SITE_URL;?>/api.php?act=to<?php echo $open_name;?><?php }?>" title="<?php echo $open_item['name'];?>" class="<?php echo $open_name;?>">&nbsp;</a>
                <?php } ?>
              <?php }?>
            </dd>
          </dl>
        <?php } ?>
    </div>
    <input type="hidden" value="<?php echo $_GET['ref_url']?>" name="ref_url">
  </form>
</div>